package com.dmcb.trade.business.crawlers.article;

import com.dmcb.trade.business.constants.CrawlConstant;
import org.springframework.stereotype.Service;

/**
 * 有调文章解析
 * Created by Administrator on 2017/9/6.
 */
@Service
public class YouDiaoParser extends  BaseParser{

    /**
     * 网站URL网址
     * @return 链接
     */
    @Override
    protected String url() {
        return CrawlConstant.YOUDIAO_URL;
    }

    /**
     * 获取标题选择器
     * @return
     */
    @Override
    protected String titleSelect() {
        return "div.article-area f-l h1.article-title,h1.article-title";
    }

    /**
     * 日期暂无
     * @return
     */

    @Override
    protected String dateSelect() {
        return null;
    }

    /**
     * 获取正文选择器
     * @return
     */
    @Override
    protected String bodySelect() {
        return "div.article,div.article";
    }

    /**
     * 获取封面选择器
     *
     * @return 封面选择器
     */
    @Override
    protected String coverSelect() {
        return "ul.banner-list>li img[src]";
    }
    @Override
    protected String platform() {
        return "有调";
    }
}
